package Decorate;

public class Client {
    public static void main(String[] args) {
        Component component = new TextComponent("文本");
        component.show();
        System.out.println("\n");
        ScrollBox scrollBox = new ScrollBox(component);
        scrollBox.show();
        scrollBox.scroll();
        System.out.println("\n");
        BlackBox blackBox = new BlackBox(scrollBox);
        blackBox.show();

    }
}
